package com.sjt.blog.service;

import com.sjt.blog.vo.OssCallbackResult;
import com.sjt.blog.vo.OssPolicyResult;
import com.sjt.blog.vo.OssUploadResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface OssService {

    // 签名生成
    OssPolicyResult policy();

    // OSS回调请求
    OssCallbackResult callback(HttpServletRequest request);

    // OSS上传
    String upload(MultipartFile file);
}
